<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class comment extends rows{
 	function init(){
 		$this->tableName="sn_comment";
 		$this->col["cid"]   = new column("cid",dataCheck::INTEGER);
 		$this->col["ccontent"] = new column("ccontent",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["ctime"]  = new column("ctime",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["csendip"]  = new column("csendip",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["cartid"]  = new column("cartid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["cuid"]  = new column("cuid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["cstate"]  = new column("cstate",dataCheck::INTEGER);
 	} 	 	
 }
